package cn.cycleif.init.execute;

import cn.cycleif.init.execute.base.AbstractApplicationExecute;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ConfigurableApplicationContext;

import static cn.cycleif.init.constant.InitializeHandlerType.APPLICATION_INITIALIZING_BEAN;

/**
 * @Date: 25/1/17-18:57
 * @Desc:
 */
public class ApplicationInitializingBeanExecute extends AbstractApplicationExecute implements InitializingBean {

  public ApplicationInitializingBeanExecute(ConfigurableApplicationContext applicationContext) {
    super(applicationContext);
  }

  @Override
  public void afterPropertiesSet() {
    execute();
  }

  @Override
  public String type() {
    return APPLICATION_INITIALIZING_BEAN;
  }
}